package com.drx.dao;

import com.drx.dojo.TabRecord;
import javafx.scene.control.Tab;

import java.util.Date;
import java.util.List;

public interface TabRecordMapper {
    int deleteByPrimaryKey(Integer rid);

    int insert(TabRecord record);

    int insertSelective(TabRecord record);

    TabRecord selectByPrimaryKey(Integer rid);

    int updateByPrimaryKeySelective(TabRecord record);

    int updateByPrimaryKey(TabRecord record);
    List<TabRecord> selectByFloarNumAndArea(Integer floarNum,String area,String day);
    //定义一个查询用户当日是否有生效预约的方法
    TabRecord selectByUidDay(Integer uid, String day);
    //定义一个按照学号查询历史预约记录的方法
    List<TabRecord> selectHistoryByStudentNum(Integer uid);
    //首先调用mapper的方法查找到当前过期时间和状态为'y'的所有TabRecord
    List<TabRecord> selectByExpiredTime(Integer expiredTime);
}